namespace WebC
{
    public partial class Form1 : Form
    {
        public static string startURL;
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            startURL = this.textBox1.Text;
            Crawler crawler = new Crawler();
            crawler.urls.Add(startURL,false);
            crawler.Crawl();
            this.textBox2.Text = "Start Crawling..."+Environment.NewLine;
            foreach(string url in crawler.urls.Keys)
                textBox2.AppendText(url+Environment.NewLine);  
            foreach(string url in crawler.exMessage.Keys)
                textBox3.AppendText(url+Environment.NewLine);
        }
    }
}